package com.lss.study.algorithm.niuke;

import java.util.Scanner;

/**
 * 功能描述：
 *
 * @Date: 2022/2/19 18:08
 */
public class T2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String one = scanner.nextLine().toLowerCase();
            String s = scanner.nextLine().toLowerCase();
            String s1 = one.replaceAll(s, "");
            System.out.println(one.length() - s1.length());
        }
    }
}
